package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.pojo.Friendship;
import com.demo.pojo.FriendshipVO;
import com.demo.pojo.ResultVO;
import com.demo.pojo.User;

import java.util.List;

public interface FriendshipService extends IService<Friendship> {
    /**
     * 添加好友
     * @param friendship
     * @return
     */
    ResultVO add(Friendship friendship);

    /**
     * 删除好友
     * @param friendship
     * @return
     */
    ResultVO delete(Friendship friendship);

    /**
     * 获取当前用户的所有好友
     * @return
     */
    ResultVO<List<FriendshipVO>> getAlList();
}
